﻿using System;
using RpcHelper.Validate;
namespace Wedonek.RpcStore.Gateway.Model
{
    internal class ShieIdSetParam
    {
        /// <summary>
        /// 集群ID
        /// </summary>
        [NumValidate("rpc.mer.Id.error", 1)]
        public long RpcMerId
        {
            get;
            set;
        }
        /// <summary>
        /// 节点类别
        /// </summary>
        [NullValidate("rpc.system.type.null")]
        [LenValidate("rpc.system.type.len", 5, 50)]
        [FormatValidate("rpc.system.type.error", ValidateFormat.字母点)]
        public string SystemType
        {
            get;
            set;
        }
        /// <summary>
        /// 服务节点Id
        /// </summary>
        [NumValidate("rpc.server.Id.error", 0)]
        public long ServerId
        {
            get;
            set;
        }
        /// <summary>
        /// API版本号
        /// </summary>
        [LenValidate("rpc.api.verNum.len", 5, 11)]
        [FormatValidate("rpc.api.verNum.error", ValidateFormat.字母点)]
        public string ApiVerNum
        {
            get;
            set;
        }
        /// <summary>
        /// 资源路径
        /// </summary>
        [NullValidate("rpc.resource.path.null")]
        [LenValidate("rpc.resource.path.len", 5, 100)]
        [FormatValidate("rpc.resource.path.error", ValidateFormat.相对路径)]
        public string ResourcePath
        {
            get;
            set;
        }
        /// <summary>
        /// 过期时间
        /// </summary>
        [TimeValidate("rpc.shieId.overTime.error", 0)]
        public DateTime? BeOverdueTime
        {
            get;
            set;
        }
    }
}
